package com.qidianit.mes.device.service.impl;

import com.qidianit.common.pojo.MESResult;
import com.qidianit.common.util.Constant;
import com.qidianit.mes.device.mapper.DeviceCategoryMapper;
import com.qidianit.mes.device.service.DeviceCategoryService;
import com.qidianit.mes.pojo.DeviceCategory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class DeviceCategoryServiceImpl implements DeviceCategoryService {

    @Autowired
    DeviceCategoryMapper deviceCategoryMapper;
    @Override
    public MESResult list() {

        List<DeviceCategory> deviceCategories = deviceCategoryMapper.list();
        return MESResult.success(deviceCategories);
    }

    @Override
    public MESResult add(DeviceCategory deviceCategory) {
        return null;
    }

    @Override
    public MESResult edit(DeviceCategory deviceCategory) {
        return null;
    }

    @Override
    public MESResult delete(String id) {
        return null;
    }
}
